package sy.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * SysProjectInformationMapping entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "app_friends", catalog = "ssh")
public class AppFriends implements java.io.Serializable {

	// Fields

	private String id;
	private SysAccount sysAccount;
	private SysProject sysProject;
	private String imgurl;
	private String content;
	private Date date;

	// Constructors

	/** default constructor */
	public AppFriends() {
	}


	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid.string")
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 64)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "sysAccount")
	public SysAccount getSysAccount() {
		return sysAccount;
	}

	public void setSysAccount(SysAccount sysAccount) {
		this.sysAccount = sysAccount;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "sysProject")
	public SysProject getSysProject() {
		return sysProject;
	}


	public void setSysProject(SysProject sysProject) {
		this.sysProject = sysProject;
	}

	@Column(name = "imgurl")
	public String getImgurl() {
		return imgurl;
	}


	public void setImgurl(String imgurl) {
		this.imgurl = imgurl;
	}

	@Column(name = "content")
	public String getContent() {
		return content;
	}


	public void setContent(String content) {
		this.content = content;
	}
	

	@Column(name = "date")
	public Date getDate() {
		return date;
	}


	public void setDate(Date date) {
		this.date = date;
	}

}